
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf-8" />
    <title>Overview of the Discrete Bubble Model &#8212; Texas A&amp;M Oil spill / Outfall Calculator 2.1.0 documentation</title>
    <link rel="stylesheet" href="../_static/alabaster.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
    <script src="../_static/jquery.js"></script>
    <script src="../_static/underscore.js"></script>
    <script src="../_static/doctools.js"></script>
    <script src="../_static/language_data.js"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="dbm.FluidMixture" href="../autodoc/dbm/dbm.FluidMixture.html" />
    <link rel="prev" title="Sources of Data in BioData.csv" href="bio_data.html" />
   
  <link rel="stylesheet" href="../_static/custom.css" type="text/css" />
  
  
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />

  </head><body>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          

          <div class="body" role="main">
            
  <div class="section" id="overview-of-the-discrete-bubble-model">
<h1>Overview of the Discrete Bubble Model<a class="headerlink" href="#overview-of-the-discrete-bubble-model" title="Permalink to this headline">¶</a></h1>
<dl class="field-list simple">
<dt class="field-odd">Release</dt>
<dd class="field-odd"><p>2.1</p>
</dd>
<dt class="field-even">Date</dt>
<dd class="field-even"><p>Jun 05, 2020</p>
</dd>
</dl>
<span class="target" id="module-dbm"></span><div class="section" id="dbm-module">
<h2>DBM Module<a class="headerlink" href="#dbm-module" title="Permalink to this headline">¶</a></h2>
<p>Define objects that interface with the DBM functions in <code class="docutils literal notranslate"><span class="pre">dbm_f</span></code>.</p>
<p>This module defines high-level Python class objects that wrap the individual 
functions that comprise the Discrete Bubble Model (DBM) in <code class="docutils literal notranslate"><span class="pre">dbm_f</span></code>.</p>
<p>These are particularly useful as an interface to the chemical property data
contained in <code class="docutils literal notranslate"><span class="pre">./data/ChemData.csv</span></code> and for pre- and post-processing of data
needed by the <code class="docutils literal notranslate"><span class="pre">TAMOC</span></code> simulation modules. These classes provide efficient 
data management of the chemical properties needed by the <code class="docutils literal notranslate"><span class="pre">dbm_f</span></code> functions 
and ensure proper behavior for the equations of state.</p>
<div class="section" id="notes">
<h3>Notes<a class="headerlink" href="#notes" title="Permalink to this headline">¶</a></h3>
<p>The functions defining most equations of state and fluid particle physics are
contained in the <code class="docutils literal notranslate"><span class="pre">dbm_f</span></code> library.  <code class="docutils literal notranslate"><span class="pre">dbm_f</span></code> contains object code compiled
from the Fortran sources:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">src</span><span class="o">/</span><span class="n">dbm_eos</span><span class="o">.</span><span class="n">f95</span>
<span class="o">./</span><span class="n">src</span><span class="o">/</span><span class="n">dbm_phys</span><span class="o">.</span><span class="n">f95</span>
<span class="o">./</span><span class="n">src</span><span class="o">/</span><span class="n">math_funcs</span><span class="o">.</span><span class="n">f95</span>
</pre></div>
</div>
<p>There are two additional functions defined in this module to complete the 
equations of state calculations.  These are:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">dbm</span><span class="o">.</span><span class="n">equilibrium</span>
<span class="n">dbm</span><span class="o">.</span><span class="n">gas_liq_eq</span>
</pre></div>
</div>
<p>which compute the partitioning between gas and liquid of each component in 
a mixture.  For this calculation, iteration is required until the fugacities 
of each component in the mixture are equal in both gas and liquid.  Because 
for <code class="docutils literal notranslate"><span class="pre">TAMOC</span></code> this would generally only be done once at the start of a 
simulation to establish initial conditions and because <cite>scipy.optimize</cite> 
provides a nice Python interface to a fast zero-solver, these two elements of 
the discrete bubble model have not been ported to Fortran and reside in the 
<cite>dbm</cite> module instead of the <code class="docutils literal notranslate"><span class="pre">dbm_f</span></code> library.</p>
</div>
</div>
<div class="section" id="class-objects-and-methods">
<h2>Class Objects and Methods<a class="headerlink" href="#class-objects-and-methods" title="Permalink to this headline">¶</a></h2>
<div class="section" id="fluid-mixtures">
<h3>Fluid Mixtures<a class="headerlink" href="#fluid-mixtures" title="Permalink to this headline">¶</a></h3>
<p>The base object of this module defines a fluid mixture, which can represent
any closed system and can include both gas and liquid together in the system.
The <code class="docutils literal notranslate"><span class="pre">FluidMixture</span></code> object and its methods are described as follows:</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.html#dbm.FluidMixture" title="dbm.FluidMixture"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture</span></code></a>(composition[, delta, …])</p></td>
<td><p>Class object for a fluid mixture</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.masses.html#dbm.FluidMixture.masses" title="dbm.FluidMixture.masses"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.masses</span></code></a>(self, n)</p></td>
<td><p>Convert the moles of each component in a mixture to their masses (kg).</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.mass_frac.html#dbm.FluidMixture.mass_frac" title="dbm.FluidMixture.mass_frac"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.mass_frac</span></code></a>(self, n)</p></td>
<td><p>Calculate the mass fraction (–) from the number of moles of each  component in a mixture.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.moles.html#dbm.FluidMixture.moles" title="dbm.FluidMixture.moles"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.moles</span></code></a>(self, m)</p></td>
<td><p>Convert the masses of each component in a mixture to their moles  (mol).</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.mol_frac.html#dbm.FluidMixture.mol_frac" title="dbm.FluidMixture.mol_frac"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.mol_frac</span></code></a>(self, m)</p></td>
<td><p>Calcualte the mole fraction (–) from the masses of each component in  a mixture.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.partial_pressures.html#dbm.FluidMixture.partial_pressures" title="dbm.FluidMixture.partial_pressures"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.partial_pressures</span></code></a>(self, m, P)</p></td>
<td><p>Compute the partial pressure (Pa) of each component in a mixture.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.density.html#dbm.FluidMixture.density" title="dbm.FluidMixture.density"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.density</span></code></a>(self, m, T, P)</p></td>
<td><p>Compute the gas and liquid density (kg/m^3) of a fluid mixture at the  given state.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.fugacity.html#dbm.FluidMixture.fugacity" title="dbm.FluidMixture.fugacity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.fugacity</span></code></a>(self, m, T, P)</p></td>
<td><p>Compute the gas and liquid fugacity (Pa) of a fluid mixture at the  given state.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.viscosity.html#dbm.FluidMixture.viscosity" title="dbm.FluidMixture.viscosity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.viscosity</span></code></a>(self, m, T, P)</p></td>
<td><p>Computes the dynamic viscosity of the gas/liquid mixture.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.interface_tension.html#dbm.FluidMixture.interface_tension" title="dbm.FluidMixture.interface_tension"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.interface_tension</span></code></a>(self, m, T, S, P)</p></td>
<td><p>Computes the interfacial tension between gas/liquid and water</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.equilibrium.html#dbm.FluidMixture.equilibrium" title="dbm.FluidMixture.equilibrium"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.equilibrium</span></code></a>(self, m, T, P[, K])</p></td>
<td><p>Computes the equilibrium composition of a gas/liquid mixture.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.solubility.html#dbm.FluidMixture.solubility" title="dbm.FluidMixture.solubility"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.solubility</span></code></a>(self, m, T, P, Sa)</p></td>
<td><p>Compute the solubility (kg/m^3) of each component of a mixture in both gas and liquid dissolving into seawater.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.diffusivity.html#dbm.FluidMixture.diffusivity" title="dbm.FluidMixture.diffusivity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.diffusivity</span></code></a>(self, Ta, Sa, P)</p></td>
<td><p>Compute the diffusivity (m^2/s) of each component of a mixture into  seawater at the given temperature.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.hydrate_stability.html#dbm.FluidMixture.hydrate_stability" title="dbm.FluidMixture.hydrate_stability"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.hydrate_stability</span></code></a>(self, m, P)</p></td>
<td><p>Compute the hydrate formation temperature at the given pressure</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidMixture.biodegradation_rate.html#dbm.FluidMixture.biodegradation_rate" title="dbm.FluidMixture.biodegradation_rate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidMixture.biodegradation_rate</span></code></a>(self, t[, …])</p></td>
<td><p>Determine the biodegradation rate constant</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="fluid-particles">
<h3>Fluid Particles<a class="headerlink" href="#fluid-particles" title="Permalink to this headline">¶</a></h3>
<p>For bubbles or droplets that utilize the equations of states in the
<code class="docutils literal notranslate"><span class="pre">FluidMixture</span></code> object, we define the <code class="docutils literal notranslate"><span class="pre">FluidParticle</span></code> object, as described
in the following:</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.html#dbm.FluidParticle" title="dbm.FluidParticle"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle</span></code></a>(composition[, fp_type, delta, …])</p></td>
<td><p>Class object for a soluble fluid particle</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.masses.html#dbm.FluidParticle.masses" title="dbm.FluidParticle.masses"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.masses</span></code></a>(self, n)</p></td>
<td><p>Convert the moles of each component in a mixture to their masses (kg).</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.mass_frac.html#dbm.FluidParticle.mass_frac" title="dbm.FluidParticle.mass_frac"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.mass_frac</span></code></a>(self, n)</p></td>
<td><p>Calculate the mass fraction (–) from the number of moles of each  component in a mixture.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.moles.html#dbm.FluidParticle.moles" title="dbm.FluidParticle.moles"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.moles</span></code></a>(self, m)</p></td>
<td><p>Convert the masses of each component in a mixture to their moles  (mol).</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.mol_frac.html#dbm.FluidParticle.mol_frac" title="dbm.FluidParticle.mol_frac"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.mol_frac</span></code></a>(self, m)</p></td>
<td><p>Calcualte the mole fraction (–) from the masses of each component in  a mixture.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.partial_pressures.html#dbm.FluidParticle.partial_pressures" title="dbm.FluidParticle.partial_pressures"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.partial_pressures</span></code></a>(self, m, P)</p></td>
<td><p>Compute the partial pressure (Pa) of each component in a mixture.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.density.html#dbm.FluidParticle.density" title="dbm.FluidParticle.density"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.density</span></code></a>(self, m, T, P)</p></td>
<td><p>Compute the particle density (kg/m^3) of the fluid in the phase given  by <cite>fp_type</cite>.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.fugacity.html#dbm.FluidParticle.fugacity" title="dbm.FluidParticle.fugacity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.fugacity</span></code></a>(self, m, T, P)</p></td>
<td><p>Compute the particle fugacities (Pa) of the fluid in the phase given  by <cite>fp_type</cite>.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.viscosity.html#dbm.FluidParticle.viscosity" title="dbm.FluidParticle.viscosity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.viscosity</span></code></a>(self, m, T, P)</p></td>
<td><p>Computes the dynamic viscosity of the fluid in the phase given by  <cite>fp_type</cite></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.interface_tension.html#dbm.FluidParticle.interface_tension" title="dbm.FluidParticle.interface_tension"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.interface_tension</span></code></a>(self, m, T, S, P)</p></td>
<td><p>Computes the interfacial tension between the particle and water</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.equilibrium.html#dbm.FluidParticle.equilibrium" title="dbm.FluidParticle.equilibrium"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.equilibrium</span></code></a>(self, m, T, P[, K])</p></td>
<td><p>Computes the equilibrium composition of a gas/liquid mixture.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.solubility.html#dbm.FluidParticle.solubility" title="dbm.FluidParticle.solubility"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.solubility</span></code></a>(self, m, T, P, Sa)</p></td>
<td><p>Compute the solubility (kg/m^3) of each component of a particle into  seawater for the phase given by <cite>fp_type</cite>.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.diffusivity.html#dbm.FluidParticle.diffusivity" title="dbm.FluidParticle.diffusivity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.diffusivity</span></code></a>(self, Ta, Sa, P)</p></td>
<td><p>Compute the diffusivity (m^2/s) of each component of a mixture into  seawater at the given temperature.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.hydrate_stability.html#dbm.FluidParticle.hydrate_stability" title="dbm.FluidParticle.hydrate_stability"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.hydrate_stability</span></code></a>(self, m, P)</p></td>
<td><p>Compute the hydrate formation temperature at the given pressure</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.biodegradation_rate.html#dbm.FluidParticle.biodegradation_rate" title="dbm.FluidParticle.biodegradation_rate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.biodegradation_rate</span></code></a>(self, t[, …])</p></td>
<td><p>Determine the biodegradation rate constant</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.masses_by_diameter.html#dbm.FluidParticle.masses_by_diameter" title="dbm.FluidParticle.masses_by_diameter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.masses_by_diameter</span></code></a>(self, de, …)</p></td>
<td><p>Find the masses (kg) of each component in a particle with equivalent  spherical diameter <cite>de</cite> and mole fractions <cite>yk</cite>.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.diameter.html#dbm.FluidParticle.diameter" title="dbm.FluidParticle.diameter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.diameter</span></code></a>(self, m, T, P)</p></td>
<td><p>Compute the equivalent spherical diameter (m) of a single fluid  particle.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.particle_shape.html#dbm.FluidParticle.particle_shape" title="dbm.FluidParticle.particle_shape"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.particle_shape</span></code></a>(self, m, T, P, …)</p></td>
<td><p>Determine the shape of a fluid particle from the properties of the  particle and surrounding fluid.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.slip_velocity.html#dbm.FluidParticle.slip_velocity" title="dbm.FluidParticle.slip_velocity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.slip_velocity</span></code></a>(self, m, T, P, …)</p></td>
<td><p>Compute the slip velocity (m/s) of a fluid particle.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.surface_area.html#dbm.FluidParticle.surface_area" title="dbm.FluidParticle.surface_area"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.surface_area</span></code></a>(self, m, T, P, Sa, Ta)</p></td>
<td><p>Compute the surface area (m^2) of a fluid particle.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.mass_transfer.html#dbm.FluidParticle.mass_transfer" title="dbm.FluidParticle.mass_transfer"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.mass_transfer</span></code></a>(self, m, T, P, …)</p></td>
<td><p>Compute the mass transfer coefficients (m/s) for each component in a  fluid particle</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.heat_transfer.html#dbm.FluidParticle.heat_transfer" title="dbm.FluidParticle.heat_transfer"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.heat_transfer</span></code></a>(self, m, T, P, …)</p></td>
<td><p>Compute the heat transfer coefficient (m/s) for a fluid particle</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.FluidParticle.return_all.html#dbm.FluidParticle.return_all" title="dbm.FluidParticle.return_all"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FluidParticle.return_all</span></code></a>(self, m, T, P, Sa, Ta)</p></td>
<td><p>Compute all of the dynamic properties of the bubble in an efficient manner (e.g., minimizing replicate calls to functions).</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="inert-particles">
<h3>Inert Particles<a class="headerlink" href="#inert-particles" title="Permalink to this headline">¶</a></h3>
<p>When there is inadequate information to use the equations of state in this
module, we define the <code class="docutils literal notranslate"><span class="pre">InsolubleParticle</span></code> object, as described in the
following:</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.html#dbm.InsolubleParticle" title="dbm.InsolubleParticle"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle</span></code></a>(isfluid, iscompressible[, …])</p></td>
<td><p>Class object for an insoluble (inert) fluid particle</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.density.html#dbm.InsolubleParticle.density" title="dbm.InsolubleParticle.density"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle.density</span></code></a>(self, T, P, Sa, Ta)</p></td>
<td><p>Compute the density (kg/m^3) of an inert fluid particle.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.viscosity.html#dbm.InsolubleParticle.viscosity" title="dbm.InsolubleParticle.viscosity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle.viscosity</span></code></a>(self, T)</p></td>
<td><p>Computes the dynamic viscosity of the liquid if applicable.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.interface_tension.html#dbm.InsolubleParticle.interface_tension" title="dbm.InsolubleParticle.interface_tension"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle.interface_tension</span></code></a>(self, T)</p></td>
<td><p>Computes the interfacial tension between the particle and water</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.biodegradation_rate.html#dbm.InsolubleParticle.biodegradation_rate" title="dbm.InsolubleParticle.biodegradation_rate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle.biodegradation_rate</span></code></a>(self, …)</p></td>
<td><p>Determine the biodegradation rate constant</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.mass_by_diameter.html#dbm.InsolubleParticle.mass_by_diameter" title="dbm.InsolubleParticle.mass_by_diameter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle.mass_by_diameter</span></code></a>(self, de, …)</p></td>
<td><p>Compute the mass (kg) of an inert fluid particle with equivalent  spherical diameter <cite>de</cite>.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.diameter.html#dbm.InsolubleParticle.diameter" title="dbm.InsolubleParticle.diameter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle.diameter</span></code></a>(self, m, T, P, Sa, Ta)</p></td>
<td><p>Compute the diameter (m) of an inert fluid particle of mass <cite>m</cite>.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.particle_shape.html#dbm.InsolubleParticle.particle_shape" title="dbm.InsolubleParticle.particle_shape"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle.particle_shape</span></code></a>(self, m, T, …)</p></td>
<td><p>Determine the shape of an inert fluid particle from the properties of  the particle and surrounding fluid.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.slip_velocity.html#dbm.InsolubleParticle.slip_velocity" title="dbm.InsolubleParticle.slip_velocity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle.slip_velocity</span></code></a>(self, m, T, …)</p></td>
<td><p>Compute the slip velocity (m/s) of an inert fluid particle.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.surface_area.html#dbm.InsolubleParticle.surface_area" title="dbm.InsolubleParticle.surface_area"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle.surface_area</span></code></a>(self, m, T, …)</p></td>
<td><p>Compute the surface area (m^2) of an inert fluid particle.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.heat_transfer.html#dbm.InsolubleParticle.heat_transfer" title="dbm.InsolubleParticle.heat_transfer"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle.heat_transfer</span></code></a>(self, m, T, …)</p></td>
<td><p>Compute the heat transfer coefficients (m/s) for an inert fluid  particle.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.InsolubleParticle.return_all.html#dbm.InsolubleParticle.return_all" title="dbm.InsolubleParticle.return_all"><code class="xref py py-obj docutils literal notranslate"><span class="pre">InsolubleParticle.return_all</span></code></a>(self, m, T, P, …)</p></td>
<td><p>Compute all of the dynamic properties of an inert fluid particle in  an efficient manner (e.g., minimizing replicate calls to functions).</p></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="module-functions">
<h2>Module Functions<a class="headerlink" href="#module-functions" title="Permalink to this headline">¶</a></h2>
<p>The objects in this module use the following functions in some of their
calculations.  It is not expected that the user would call these directly;
rather, please use one of the objects defined above.</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.equil_MM.html#dbm.equil_MM" title="dbm.equil_MM"><code class="xref py py-obj docutils literal notranslate"><span class="pre">equil_MM</span></code></a>(m, T, P, M, Pc, Tc, omega, delta, …)</p></td>
<td><p>Compute the equilibrium composition of a mixture using the P-R EOS</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.stability_analysis.html#dbm.stability_analysis" title="dbm.stability_analysis"><code class="xref py py-obj docutils literal notranslate"><span class="pre">stability_analysis</span></code></a>(m, T, P, M, Pc, Tc, …)</p></td>
<td><p>Perform stability analysis to determine the stability of a mixture</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.successive_substitution.html#dbm.successive_substitution" title="dbm.successive_substitution"><code class="xref py py-obj docutils literal notranslate"><span class="pre">successive_substitution</span></code></a>(m, T, P, max_iter, …)</p></td>
<td><p>Find K-factors by successive substitution</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="../autodoc/dbm/dbm.gas_liq_eq.html#dbm.gas_liq_eq" title="dbm.gas_liq_eq"><code class="xref py py-obj docutils literal notranslate"><span class="pre">gas_liq_eq</span></code></a>(m, M, K)</p></td>
<td><p>docstring for gas_liq_eq(m, M, K)</p></td>
</tr>
</tbody>
</table>
</div>
</div>


          </div>
          
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="../index.html">Texas A&M Oil spill / Outfall Calculator</a></h1>








<h3>Navigation</h3>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="../user_manual.html">TAMOC User Manual</a></li>
<li class="toctree-l1"><a class="reference internal" href="../unit_tests.html">Unit Tests</a></li>
<li class="toctree-l1"><a class="reference internal" href="../glossary.html">Glossary</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../bugs.html">Reporting Bugs</a></li>
<li class="toctree-l1"><a class="reference internal" href="../readme.html">Read Me File</a></li>
<li class="toctree-l1"><a class="reference internal" href="../release.html">Release Notes</a></li>
<li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li>
</ul>

<div class="relations">
<h3>Related Topics</h3>
<ul>
  <li><a href="../index.html">Documentation overview</a><ul>
  <li><a href="../user_manual.html">TAMOC User Manual</a><ul>
      <li>Previous: <a href="bio_data.html" title="previous chapter">Sources of Data in BioData.csv</a></li>
      <li>Next: <a href="../autodoc/dbm/dbm.FluidMixture.html" title="next chapter">dbm.FluidMixture</a></li>
  </ul></li>
  </ul></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" />
      <input type="submit" value="Go" />
    </form>
    </div>
</div>
<script>$('#searchbox').show(0);</script>








        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &copy;2020, Scott A. Socolofsky.
      
      |
      Powered by <a href="http://sphinx-doc.org/">Sphinx 2.4.4</a>
      &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
      
      |
      <a href="../_sources/modules/dbm.rst.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>